(function (win) {
  /**
   * @function
   * @param {function} subType 
   * @param {function} superType 
   */
  function inheritPrototype(subType, superType) {
    var prototype = Object.create(superType.prototype);
    prototype.constructor = subType;
    subType.prototype = prototype;
  }

  win.inheritPrototype = inheritPrototype;
})(window);